﻿using OddUserManager.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace OddUserManager.Data.IRepositories
{
    public interface IOddRepository : IRepository<Odd>
    {
        List<Odd> GetOddsByCreateUserId(int id);

        List<Odd> GetOddsBySiteIds(string siteIds, int pageIndex, int pageSize, out int dataCount);

        List<Odd> GetAllList(int pageIndex, int pageSize, out int dataCount);

        List<Odd> GetUnfinishedOdds();

        bool UpdateOddDetailsContents(int id, List<BetDetailOdd> list);

        List<SelectedMatchOddData> GetSelectedMatchOddDataByMatchIds(List<int> ids);

        void DeleteById(int id);

        void UpdateCertification(int oddId, bool certification, int confirmAppUserId);

        List<Odd> GetOddsBySiteIds(string siteIds, int[] oddMoneyTypes, int oddState, int pageIndex, int pageSize, out int dataCount);
        List<Odd> GetAllList(int[] oddMoneyTypes, int oddState, int pageIndex, int pageSize, out int dataCount);
        List<Odd> GetOddBySiteIdsAndTime(DateTime startTime, DateTime endTime, string siteIds);

        List<Odd> GetOddBySelectedMatchIds(List<int> ids);
    }
}
